#ifndef WELCOME_WIDGET_H
#define WELCOME_WIDGET_H

#include <QWidget>
#include <stdio.h>
#include <string.h>
#include <QDebug>
#include <QDateTime>
#include <QVBoxLayout>
#include <QTimer>
#include <QtEndian>
#include <QWidget>

namespace Ui {
class welcome_Widget;
}

class Page1_Widget;
class Page2_Widget;
class Page3_Widget;
class Page4_Widget;
class Page5_Widget;

#define SOFTWARE_VERSION     "V 1.0.0"
#define HARDWARE_VERSION     "V 1.0.2"

#define COMPANY_INFO         "EmbedIoT Studio "

#define TIMEOUT_BASE_VALUE           100                  //200ms
#define TIMEOUT_CURRTIME_UPDATE      1000                 //1000ms


class welcome_Widget : public QWidget
{
    Q_OBJECT

public:
    explicit welcome_Widget(QWidget *parent = nullptr);
    ~welcome_Widget();
    Ui::welcome_Widget *ui;

public:

private slots:
    void basetimer_timeout_handler();

    void on_pb_page_1_clicked();
    void on_pb_page_2_clicked();
    void on_pb_page_3_clicked();
    void on_pb_page_4_clicked();
    void on_pb_page_5_clicked();

private:
    QTimer *base_timer;

    Page1_Widget *page1_widget;
    Page2_Widget *page2_widget;
    Page3_Widget *page3_widget;
    Page4_Widget *page4_widget;
    Page5_Widget *page5_widget;

    void update_current_time();
    void update_information();

};

#endif // WELCOME_WIDGET_H
